package com.roy.yuvlib;

public class YUVRotate {

    // Used to load the 'yuvlib' library on application startup.
    static {
        System.loadLibrary("YuvLib");
    }

    public native byte[] NV12RotateToNV21(byte[] src_y,
                                          int src_stride_y,
                                          byte[] src_uv,
                                          int src_stride_uv,
                                          int width, int height, int degress);

    // 只旋转 90 270
    public native byte[] I420RotateToNV21(byte[] src_y,
                                          int src_stride_y,
                                          byte[] src_u,
                                          int src_stride_u,
                                          byte[] src_v,
                                          int src_stride_v,
                                          int width,
                                          int height,
                                          int degress);
}
